﻿@model TCCVoigt.Models.Modulo

@{
    ViewBag.Title = "Create";
}

<h2>Adicionar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Modulo</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descricao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descricao)
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CodigoSistema, "Sistema")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CodigoSistema", String.Empty)
            @Html.ValidationMessageFor(model => model.CodigoSistema)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Complexidade)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Complexidade, new { style = "width:30px;" }) %
            @Html.ValidationMessageFor(model => model.Complexidade)
        </div>

        <p>
            <input type="submit" value="Gravar" />
        </p>
    </fieldset>
}

<div>
    <a href="@Url.Action("Index")"><img src="~/Images/ico_back.png" alt="" border="0" style="float: left"/>Voltar</a>
</div>
